package com.socket.socketObjTest;

import java.io.Serializable;

/**
 * Pet--bdqnPractice
 *
 * @author: Jovi
 * @createTime: 2017-09-14 10:47
 **/
public class Pet implements Serializable {

    private static final long serialVersionUID = 1943346110460570060L;
    private String name;

    private String color;

    public Pet() {
    }

    public Pet(String name, String color) {
        this.name = name;
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
